/* Homepage specific layout and polish */

.home-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  color: white;
  max-width: 920px;
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#home-title {
  margin: 6px 0 18px 0;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 800;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.hero-sub {
  margin: 0 0 20px 0;
  opacity: 0.95;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stats-row {
  display: flex;
  gap: 32px;
  padding: 32px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

/* compact logo + title block */
.logo-slim {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

/* 把 badge 改为图片样式：尺寸、圆角、阴影 */
.logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 28px rgba(11,75,214,0.12);
  background: #fff;
  flex-shrink: 0;
}

.logo-badge-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15,99,255,0.3);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: float 3s ease-in-out infinite;
}

.logo-badge-large:hover {
  transform: rotate(10deg) scale(1.1);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 若需要文字徽标的回退（WCAG）可以隐藏但保留 aria-label */
.site-title {
  font-weight: 700;
  color: white;
  font-size: 22px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.site-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-top: 4px;
}

/* Hero main */
.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gradient-text {
  background: linear-gradient(135deg, #ffd700, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  /* 移除动画效果，让文字静止 */
}

.hero-sub {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.95);
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* CTAs */
.hero-ctas { display:flex; gap:12px; flex-wrap:wrap; }
.btn-lg { padding: 12px 18px; border-radius: 12px; font-size:15px; }
.btn.primary.btn-lg { box-shadow: 0 10px 30px rgba(11,75,214,0.12); }

/* Right card (glass effect) */
.hero-card {
  background: white;
  padding: 32px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  animation: fadeInRight 0.8s ease-out 0.2s both;
  border: 1px solid rgba(0,0,0,0.05);
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(15,99,255,0.1) 0%, transparent 70%);
  animation: rotate 10s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg);
}

.card-list li:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
}

.card-list strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text);
}

.card-list p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(15,99,255,0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(15,99,255,0.35);
  }
}

/* Features section under hero */
.home-features {
  padding: 80px 24px;
  position: relative;
}

.features-heading {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  /* 移除动画效果 */
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 底部 */
.home-footer {
  padding: 48px 0;
  text-align: center;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.home-footer p {
  margin: 8px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: all 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
}

.footer-links a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.footer-links span {
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding: 20px; }
  .hero-card { order: 2; margin-top: 18px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .stats-row {
    flex-direction: column;
    gap: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #home-title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn-lg { width:100%; }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-title {
    font-size: 28px;
  }
}